import request from '@/utils/request'

const api_name = '/serviceEdu/comment'

export default {

    getPageList(page, limit, courseId) {
      return request({
        url: `${api_name}/getPageInfo/${page}/${limit}`,
        method: 'get',
        params: {courseId}
      })
    },
    addComment(comment) {
      return request({
        url: `${api_name}/save`,
        method: 'post',
        data: comment
      })
    }
  }